﻿using Joy.Erp.BasicArchives;
using Microsoft.AspNetCore.Mvc;
using Volo.Abp;
using Volo.Abp.Application.Dtos;

namespace Joy.Erp.Ufida.Core
{
    [RemoteService(Name = BasicArchivesRemoteServiceConsts.RemoteServiceName)]
    [Area(BasicArchivesRemoteServiceConsts.ModuleName)]
    [ControllerName("DocumentSync")]
    [Route("api/basic-archives/document-sync")]
    public class DocumentSyncController : UfidaController, IDocumentSyncAppService
    {
        protected IDocumentSyncAppService DocumentSyncAppService => LazyServiceProvider.LazyGetRequiredService<IDocumentSyncAppService>();

        [HttpGet]
        [Route("empty")]
        public PagedResultDto<AnalysisDto> GetEmpty()
        {
            return DocumentSyncAppService.GetEmpty();
        }
    }
}
